package com.factory._15chain.example;

/**
 * @author Qinye
 * @date 2023/8/13 17:30
 */
public class SchoolMasterApprover  extends Approver{
    public SchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(ApproverRequest approverRequest) {
        if (approverRequest.getPrice() > 15000) {
            System.out.println("请求编号 id= " + approverRequest.getId() + " 被 " + this.name + " 处理");
        } else {
            next.processRequest(approverRequest);
        }
    }
}
